package 字符串;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2023/9/8 9:53
 * @description:
 * @version:
 */
public class Test {
    public static void main(String[] args) {
        String str = "AAA";
        List<String> list = new ArrayList<>();
        list.add("mmm");
        test2(list);
        System.out.println(list.size());
    }

    public static class Cat{
        private Integer age;

        public Cat(Integer age) {
            this.age = age;
        }

        public Integer getAge() {
            return age;
        }

        public void setAge(Integer age) {
            this.age = age;
        }
    }

    public static void test2(List<String> list) {
        list.add("str");
        list = new ArrayList<>();
        list.add("BBB");
    }
}
